package org.ziwei.rule.dao;

import javax.transaction.Transactional;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import org.ziwei.rule.pojo.Rule;

@Transactional
public interface RuleRepository extends CrudRepository<Rule, String>{

	@Query("SELECT t FROM Rule t WHERE t.ruleCode= :ruleCode")
	public Rule find(@Param("ruleCode") String ruleCode);
}
